
/**
 * @Description 学期Service
 * @author 20155872 游宇
 * @create 2018-05-17 10:25
 **/


package com.academic_system.service;

import com.academic_system.model.Term;
import com.academic_system.util.Msg;
import org.springframework.stereotype.Service;

/**
 * @className TermService
 * @Description 学期Service
 * @create 2018-05-17 10:25
 **/
@Service
public interface TermService {

    /**
     * @param termYear,termNum
     * @Description 根据学年以及学期查询term_id
     * @methodName queryTermId
     * @returnType Msg
     * @create 2018/5/18 16:09
     **/
    Msg<Term> queryTermId(String termYear, String termNum);

    /**
     * @Description: 查询所有的学年学期记录
     * @methodName: getAllTerm
     * @param: null
     * @returnType: List<Term>
     * @createTime: 2018/5/17 10:23
     **/

    Msg getAllTerm();

    /**
     * @Description: 添加一条记录到term表中
     * @methodName: addTerm
     * @param: Term term
     * @returnType: boolean
     * @createTime: 2018/5/17 10:24
     **/
    Msg addTerm(Term term);

}
